﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NetWorkForm.aspx.cs" Inherits="BaseData_NetWorkForm" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>当前位置:机房管理→机房编辑</title>
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <!--#include file="../js/KeyControl.js"-->
    <base target="_self" />

    <script type="text/javascript" language="JavaScript">
        function CheckFormMenu() {
            if (document.form1.ddlRegionid.value == "0") {
                alert("请选择区域！");
                document.form1.ddlRegionid.focus();
                return false;
            }

            if (document.form1.ddlMachineid.value == "0") {
                alert("请选择机房！");
                document.form1.ddlMachineid.focus();
                return false;
            }
            if (document.form1.txtNetwName.value.length > 20) {
                alert("网元名称字符超过有效长度！");
                document.form1.txtNetwName.focus();
                return false;
            }
            var btnSave = window.document.getElementById("btnSave");
            if (btnSave != null)
                btnSave.click();
        }
			
    </script>

</head>
<body bgcolor="#F9F9FB">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
    <div>
        <table style="width: 98%;" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr style="height: 10;">
                <td>
                </td>
            </tr>
        </table>
        <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
            <tr bgcolor="#F9F9FB">
                <td align="right" height="30">
                    所属区域
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlRegionid" runat="server" DataTextField="sName" DataValueField="ID"
                        AutoPostBack="True" OnSelectedIndexChanged="ddlRegionid_SelectedIndexChanged">
                    </asp:DropDownList>
                    <font color="#FF0000">*</font>
                </td>
                <td align="right" height="30">
                    所属机房
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlMachineid" DataTextField="sName" DataValueField="ID" runat="server">
                    </asp:DropDownList>
                    <font color="#FF0000">*</font>
                </td>
            </tr>
            <tr bgcolor="#F9F9FB">
                <td align="right">
                    网元名称
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNetwName" runat="server" MaxLength="5" Width="100px"></asp:TextBox><font
                        color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                            runat="server" ErrorMessage="不能为空" ControlToValidate="txtNetwName"></asp:RequiredFieldValidator>
                </td>
                <td height="30"">
                    <div align="right">
                        排序</div>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNetwSeq" runat="server" MaxLength="20" Width="100px"></asp:TextBox><font
                        color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                            runat="server" ErrorMessage="不能为空" ControlToValidate="txtNetwSeq"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr bgcolor="#F9F9FB">
                <td align="right">
                    创建时间
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNetwCreatedate" runat="server" MaxLength="5" Width="100px"></asp:TextBox><font
                        color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                            runat="server" ErrorMessage="不能为空" ControlToValidate="txtNetwCreatedate"></asp:RequiredFieldValidator>
                </td>
                <td height="30">
                    <div align="right">
                        备注</div>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtMemo" runat="server" MaxLength="20" Width="100px"></asp:TextBox><font
                        color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                            runat="server" ErrorMessage="不能为空" ControlToValidate="txtMemo"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr bgcolor="#F9F9FB">
                <td align="right">
                    专业
                </td>
                <td colspan="3">
                    <asp:TextBox ID="speciality" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td height="36" colspan="4" bgcolor="#F9F9FB">
                    <div align="center">
                        <asp:Button ID="btnSave" runat="server" Text="提交" Width="0px" Height="0px" BackColor="White"
                            BorderColor="White" ForeColor="White" />
                        &nbsp;&nbsp;&nbsp;
                        <input type="button" id="Button1" value="提交" class="button02" onclick="CheckFormMenu();" />
                        <input type="button" id="btnClose" value="返回" class="button02" onclick="location.href='MachineRoomManage.aspx'" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
